package com.helmlabs.grouper.forms.model.field;

import java.util.List;

import com.helmlabs.grouper.forms.model.validator.FieldValidator;

public abstract class AbstractField {

	
	private Long id;
	private String name;
	private String label;
	private Object value;
	
	private List<FieldValidator> validators;
	private List<String> errorMessages;
	private boolean hasErrors;
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getLabel() {
		return label;
	}
	public void setLabel(String label) {
		this.label = label;
	}
	public Object getValue() {
		return value;
	}
	public void setValue(Object value) {
		this.value = value;
	}
	public List<FieldValidator> getValidators() {
		return validators;
	}
	public void setValidators(List<FieldValidator> validators) {
		this.validators = validators;
	}
	public List<String> getErrorMessages() {
		return errorMessages;
	}
	public void setErrorMessages(List<String> errorMessages) {
		this.errorMessages = errorMessages;
	}
	public boolean isHasErrors() {
		return hasErrors;
	}
	public void setHasErrors(boolean hasErrors) {
		this.hasErrors = hasErrors;
	}
	
	
}
